home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
031a
/
blx11.zip
/
TTIME.CPP
< prev
next >
Wrap
Text File
|
1991-01-21
|
291b
|
14 lines
#include<time.h>
#include<iostream.h>
struct tm *time(void);
void main(void) {
time_t ttime = time(NULL);
struct tm *ltime = time();
cout << ctime(&ttime);
cout << asctime(ltime);
}
struct tm *time(void) {
time_t t = time(NULL);
return localtime(&t);
}